<head>
<link type="text/css"  href="../../includes/css/new1.css" rel="stylesheet" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
<style>
#A1 td { vertical-align: top; }
#A1 td.bj { font-family: Wingdings; color: #E6F0F8; text-align: center; }
#A1 td.bj , #A1 td.kg { width: 24; }
#A1 a:link , #A1 a: visited  { color: #cc0080; text-decoration: none; }
#A1 a:hover { color: #0ff080; text-decoration: none; }
</style>
<script language="JavaScript">
//作者：海浪

function treeClass(id)
{
 this.id = id;
 this.HTMLdata = "";

 this.start = function()    //菜单开始
 {
   this.HTMLdata += '<table border="0" cellpadding="0" cellspacing="0" width="100%" id="'+this.id+'">';
 }

 this.end = function()    //菜单结束
 {
   this.HTMLdata += '</table>';
 }

 this.m_start = function(name,tt)    //菜单组开始
 {
   this.HTMLdata += '<tr><td class="bj">'+(tt==1?'1':'0')+'</td>';
   this.HTMLdata += '<td><a style="cursor:hand;" onclick="zgmm()">'+name+'</a></td>';
   this.HTMLdata += '</tr>';
   this.HTMLdata += '<tr style="display: '+(tt==1?'block':'none')+';">';
   this.HTMLdata += '<td class="bj"> </td>';
   this.HTMLdata += '<td>';
   this.HTMLdata += '<table border="0" cellpadding="0" cellspacing="0">';
 }

 this.m_end = function()    //菜单组结束
 {
   this.HTMLdata += '</table></td></tr>';
 }

 this.add_Sub = function(name,url,t)    //添加菜单项
 {
   this.HTMLdata += '<tr><td class="bj">2</td><td>';
   this.HTMLdata += '<input  style="cursor:hand;"  name="info[]" type="checkbox"  '+(t==1?' checked="checked" ':'')+' id="infochic" value="'+url+'">'+name;
   this.HTMLdata += '</td></tr>';
 }

 this.print = function()    //输出菜单
 {
   document.write(this.HTMLdata);
 }
}

function zgmm()
{
  var ero = event.srcElement.parentElement.previousSibling;
  var mo = event.srcElement.parentElement.parentElement.nextSibling;
  mo.style.display = (mo.style.display=="none")?"block":"none";
  ero.innerHTML = (mo.style.display=="none")?"0":"1";
}
</script>

</head>
<table width="80%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#B1CDE6" class="line">
<form action="right.php"  method="post" name="form1" >
<tr id="cat">
                          <td colspan="2" class="tablemenu">
                            <div align="center"><b>添加权限模版</b> </div></td>
    </tr>
<tr nowrap="nowrap" class="firstalt">
  <td>中文名字:</td>
  <td><input name="zh"  type="text" id="zh" value="<{$zh}>" size="35" maxlength="120" /></td>
</tr>
<tr nowrap="nowrap" class="firstalt">
  <td>英文名字:</td>
  <td><input name="en"  type="text" id="en" value="<{$en}>" size="35" maxlength="120" /></td>
</tr>
<tr nowrap="nowrap" class="firstalt">
  <td>简介:</td>
  <td><textarea name="intro" cols="40" rows="6" id="intro"><{$intro}></textarea></td>
</tr>
<tr nowrap="nowrap" class="firstalt">
  <td>权限选择:</td>
  <td><label><script language="JavaScript">

var tObj = new treeClass("A1")
tObj.start();
<{$tree_chedckbox1}>
tObj.end();
tObj.print();
</script></label></td>
</tr>
<input type="hidden" name="action" value="<{$action}>">
<input type="hidden" name="id" value="<{$id}>">
<tr class="firstalt" nowrap>
                      <td width="20%">&nbsp;</td>
      <td width="80%"><label>
        <input type="submit" name="Submit" value="-提交-" />
      </label>
        <label>
        <input type="reset" name="Submit2" value="-重设-" />
      </label></td>
    </tr>
</form>
</table>
